package homework_06.homework_05;

/**
 * 定义一个人类Person：定义一个方法sayHello()，可以向对方发出问候语“hello,my name is XXX” ，有三个属性：名字、身高、体重 。
 */
public class Person {
    String name;
    int height;
    int weight;
    public Person(){

    }
    public Person(String name,int height,int weight){
        this.name=name;
        this.height=height;
        this.weight=weight;
    }
    public void sayHello(){
        System.out.println("hello,my name is "+name);
    }
}
